package com.cjw.pojo.entity.database;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.persistence.Table;

@EqualsAndHashCode(callSuper = true)
@Data
@ToString(callSuper = true)
@Table(name = "user_user")
@ApiModel("用户")
public class User extends BaseEntity{
    @ApiModelProperty("用户昵称")
    private String userName;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("电话号码")
    private String phone;

    @ApiModelProperty("盐值")
    private String salt;

    @ApiModelProperty(name = "状态", notes = "0正常 1被封 2注销")
    private Integer state;

    @ApiModelProperty(name = "类型", notes = "0用户 1管理员")
    private Integer type;
}
